package com.tianji.learning.controller;


import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardSeasonVO;
import com.tianji.learning.domain.vo.PointsBoardVO;
import com.tianji.learning.service.IPointsBoardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 前端控制器
 * </p>
 *
 * @author liuchun
 * @since 2024-09-07
 */
@RestController
@RequestMapping("/boards")
@Api(tags = "积分排行榜相关接口")
public class PointsBoardController {

    @Autowired
    private IPointsBoardService pointsBoardService;

    @GetMapping
    @ApiOperation("查询指定赛季的积分排行榜以及当前用户积分和排名信息")
    public PointsBoardVO getPointsBoard(PointsBoardQuery query){
        return pointsBoardService.getPointsBoard(query);
    }
}
